package com.hhit.zhgd.domain.entity

import com.baomidou.mybatisplus.annotation.FieldFill
import com.baomidou.mybatisplus.annotation.IdType
import com.baomidou.mybatisplus.annotation.TableField
import com.baomidou.mybatisplus.annotation.TableId
import com.baomidou.mybatisplus.annotation.TableName
import java.util.Date

@TableName("menu")
data class Menu(
    @TableId(type = IdType.AUTO)
    val id:Long?=null,
    val name:String?=null,
    val parentId:Long?=null,
    val type:String?=null,
    val path:String?=null,
    val perms:String?=null,
    val icon:String?=null,
    val sort:Int?=null,
    val status: Int?=null,
    @TableField(fill = FieldFill.INSERT_UPDATE)
    var updateTime:Date?=null,
    @TableField(fill = FieldFill.INSERT)
    var createTime:Date?=null
):java.io.Serializable{
    companion object{
        const val serialVersionUID = 1L
    }
}
